package com.javer.domain;

import java.io.Serializable;

/**
 * 公司表
 * 
 * @author god
 *
 */
public class Company implements Serializable {
	/**
	 * 公司ID
	 */
	private int id;
	/**
	 * 名司名
	 */
	private String cname;
	/**
	 * 公司规模
	 * <option value="10">10人以下</option> 
	 * <option value="100">10-100人</option> 
	 * <option value="500">100-500人</option>
	 * <option value="1000">500-1000人</option> 
	 * <option value="-1">1000人以上</option>
	 */
	private String cscale;
	/**
	 * 公司地址
	 */
	private String caddress;

	/**
	 * 公司经营业务
	 * <option value="1">电信</option> 
	 * <option value="2">银行/金融/保险</option>
	 * <option value="3">教育</option> 
	 * <option value="4">医疗</option> 
	 * <option value="5">政府</option> 
	 * <option value="6">互联网</option> 
	 * <option value="7">餐饮</option> 
	 * <option value="8">其他</option>
	 */
	private String cbusiness;
	/**
	 * 公司简介
	 */
	private String cdesc;
	/**
	 * 公司图片
	 */
	private String cimages;
	/**
	 * 公司地图
	 */
	private String cmap;
	
	/**
	 * 公司评分
	 */
	private int cscore;
	
	/**
	 * 评论条数
	 */
	private int commentCount;
	
	/**
	 * SID
	 */
	private static final long serialVersionUID = 1L;

	public int getCommentCount() {
		return commentCount;
	}

	public void setCommentCount(int commentCount) {
		this.commentCount = commentCount;
	}

	public String getCbusiness() {
		return cbusiness;
	}

	public void setCbusiness(String cbusiness) {
		this.cbusiness = cbusiness;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getCscore() {
		return cscore;
	}

	public void setCscore(int cscore) {
		this.cscore = cscore;
	}

	public String getCname() {
		return cname;
	}

	public void setCname(String cname) {
		this.cname = cname;
	}

	public String getCscale() {
		return cscale;
	}

	public void setCscale(String cscale) {
		this.cscale = cscale;
	}

	public String getCaddress() {
		return caddress;
	}

	public void setCaddress(String caddress) {
		this.caddress = caddress;
	}

	public String getCdesc() {
		return cdesc;
	}

	public void setCdesc(String cdesc) {
		this.cdesc = cdesc;
	}

	public String getCimages() {
		return cimages;
	}

	public void setCimages(String cimages) {
		this.cimages = cimages;
	}

	public String getCmap() {
		return cmap;
	}

	public void setCmap(String cmap) {
		this.cmap = cmap;
	}

	@Override
	public String toString() {
		return "Company [caddress=" + caddress + ", cdesc=" + cdesc
				+ ", cimages=" + cimages + ", cmap=" + cmap + ", cname="
				+ cname + ", cscale=" + cscale + ", id=" + id + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + id;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Company other = (Company) obj;
		if (id != other.id)
			return false;
		return true;
	}

}
